Good for you joelbear. I'm working on exactly the same thing myself.
It's not always easy but in the long term it's better than the downward spiral of negative thinking. Sometimes you get knocked back down again, but every time you make the conscious decision to get back up and fight back, it makes you a little stronger and more experienced for the next time.
Keep fighting!